package org.jsola.hr.query.permission;

import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;

import javax.validation.constraints.NotNull;

/**
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RoleMemberQuery extends BaseQuery{

    private static final long serialVersionUID = -3864180724817219069L;

    @ApiParam(value = "公司id", example = "1")
    @NotNull(message = "公司ID不能为空")
    private String companyId;

    @ApiParam(value = "用户名", example = "张三")
    private String userName;

    @ApiParam(value = "手机号", example = "13888888888")
    private String phone;

    @ApiParam(value = "角色名称", example = "管理员")
    private String roleName;
}
